package com.huawei.hms.update.ui;

import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import com.huawei.hms.utils.ResourceLoaderUtil;

public final class j {

    static abstract class a extends b {
        protected abstract int h();

        private a() {
        }

        public AlertDialog a() {
            Builder builder = new Builder(f(), g());
            builder.setMessage(h());
            builder.setPositiveButton(i(), new OnClickListener(this) {
                final /* synthetic */ a a;

                {
                    this.a = r1;
                }

                public void onClick(DialogInterface dialogInterface, int i) {
                    this.a.e();
                }
            });
            return builder.create();
        }

        protected int i() {
            return ResourceLoaderUtil.getStringId("hms_confirm");
        }
    }

    public static class b extends a {
        public b() {
            super();
        }

        public /* bridge */ /* synthetic */ AlertDialog a() {
            return super.a();
        }

        protected int h() {
            return ResourceLoaderUtil.getStringId("hms_check_failure");
        }
    }

    public static class c extends a {
        public c() {
            super();
        }

        public /* bridge */ /* synthetic */ AlertDialog a() {
            return super.a();
        }

        protected int h() {
            return ResourceLoaderUtil.getStringId("hms_download_failure");
        }
    }

    public static class d extends a {
        public d() {
            super();
        }

        public /* bridge */ /* synthetic */ AlertDialog a() {
            return super.a();
        }

        protected int h() {
            return ResourceLoaderUtil.getStringId("hms_download_no_space");
        }
    }
}
